<?php


//后台管理
class Admin_controller extends CI_Controller{
	
	//后台管理文件夹
	public $_admin_dir;
	
	public function __construct()
	{

		parent::__construct();
		$this->load->helper('url');
		$this->load->library('Auth_admin','auth_admin');
		$this->_admin_dir = $this->config->item('admin_dir');
		$this->auth_admin->check_login();	
		
	}
	
	public function left()
	{
		
		$this->load->view('adminroot/left');
	}
}

//前台管理
class Base_Controller extends CI_Controller{
	
	public function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->library('Auth');
		//$this->auth->check_login();
	}
	
}